package parser;

class ContaToken implements ContaTokens {

    public int type;
    public int intVal;
    public String strVal;

    public ContaToken(int type) {
        this.type = type;
    }

    public ContaToken(int type, int intVal) {
        this.type = type;
        this.intVal = intVal;
    }

    public ContaToken(int type, String strVal) {
        this.type = type;
        this.strVal = strVal;
    }
    
    public boolean is(int type) {
    	return this.type == type;
    }

    public String toString() {
		return strVal;
    }
}
